<?php
//注册自动加载的类目录，在php解析程序时直接加载
$loader = new \Phalcon\Loader();
$loader->registerNameSpaces([
    'Cmf\Controllers' => $config->application->controllersDir,
    'Cmf\Library'     => $config->application->libraryDir,
    'Cmf\Plugins'     => $config->application->pluginsDir,
    'Cmf\Models'      => $config->application->modelsDir,
    'Cmf\Forms'       => $config->application->formsDir,
]);
$loader->register();
